<template>
  <!--投稿指南-->
  <div>
    <carousel :autoplaySpeed="autoplaySpeed" :Img="Img"></carousel>
    <div class="wrapper">
      <p class="p1" v-if="introduce" v-for="introduce in introduce" v-html="introduce.guidelines"></p>
    </div>
  </div>
</template>

<script>
  import carousel from '../module/carousel'
  import ngn from '../module/ngn'

  export default {
    components: {
      carousel, ngn
    },
    data() {
      return {
        activeIndex: 1,
        autoplaySpeed: 100000,
        contributeGuideLink: this.$api.url + '/thesisguide/fingerpost',
        Img: [
          {
            id: 1,
            imageLocation: require('../../assets/img/u69.jpg'),
            state: true,
            uri: "",
          },
        ],
        introduce: [],
      }
    },
    mounted() {
      this.dataArray()
    },
    methods: {
      dataArray() {
        this.$axios.get(this.contributeGuideLink).then((res) => {
          this.introduce = res.data
        });
      }
    }
  }
</script>

<style scoped>
  .wrapper {
    margin: 20px 10px;
  }

  .wrapper .p1 {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
  }
</style>
